//
//  PSUDPHeader.m
//  PacketSniffer
//
//  Created by nark on 02/05/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "PSUDPHeader.h"


@implementation PSUDPHeader

@synthesize sourcePort;
@synthesize destinationPort;
@synthesize udpLength;
@synthesize checksum;


-(NSString *)description {
	return [NSString stringWithFormat:@"UDP Header - %d -> %d", sourcePort, destinationPort];
}

- (NSMutableDictionary *)properties {
	NSMutableDictionary *propertyDict = [[NSMutableDictionary alloc] init];
	
	[propertyDict setValue:[NSString stringWithFormat:@"%d", self.sourcePort]							
					forKey:@"Source Port"];
	
	[propertyDict setValue:[NSString stringWithFormat:@"%d", self.destinationPort]				
					forKey:@"Destination Port"];
	
	
	return propertyDict;
}


@end